﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BaiTapBatBuoc
{
    class Diem
    {
        private double x;
        private double y;
        public Diem() {
            x = 0;
            y = 0;
        }
        public Diem(double x, double y)
        {
            this.x = x;
            this.y = y;
        }
        public double KhoangCach(Diem b){
            return Math.Sqrt((b.x - this.x) * (b.x - this.x) + (b.y - this.y) * (b.y - this.y));
        }
    }
}
